package com.security.wiremock;

import com.github.tomakehurst.wiremock.client.WireMock;

/**
 * ${DESCRIPTION}
 *
 * @author roger
 * @email 190642964@qq.com
 * @create 2017-11-02 12:45
 **/
public class MockServer {

    public static void main(String[] args) {
        WireMock.configureFor(8099);
        WireMock.removeAllMappings();

        WireMock.stubFor(
                WireMock.get(WireMock.urlEqualTo("/some/thing"))
                        .willReturn(WireMock.aResponse().withBody("{\"id\":1}")));
    }

}
